package com.koron.order.defect.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.base.BaseQueryBean;
import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.defect.bean.po.DefectDispatch;
import org.koron.ebs.mybatis.SessionFactory;

/**
 * (DefectDispatch)表服务接口
 *
 * @author zhouj
 * @since 2021-09-03 16:44:50
 */
public interface DefectDispatchService extends CommonService {

    int insertOrUpdate(SessionFactory factory, DefectDispatch defectDispatch);

    int insert(SessionFactory factory, DefectDispatch defectDispatch);

    int update(SessionFactory factory, DefectDispatch defectDispatch);

    int deleteById(SessionFactory factory, String id);

    DefectDispatch queryById(SessionFactory factory, String id);

    PageInfo queryList(SessionFactory factory, DefectDispatch defectDispatch, BaseQueryBean pageBean);

    DefectDispatch queryByOrderId(SessionFactory factory, String orderId);

    int deleteByOrderId(SessionFactory factory, String orderId);
}
